package com.punch.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punch.common.dto.system.TeacherLectureDTO;
import com.punch.common.page.PageInfo;
import com.punch.common.query.syste.TeacherLectureQueryInfo;
import com.punch.common.vo.system.TeacherLectureVO;
import com.punch.system.model.TeacherLecture;


/**
 * <p>
 * 名师讲堂表 服务类
 * </p>
 *
 * @author wjj
 * @since 2020-12-14
 */
public interface TeacherLectureService extends IService<TeacherLecture> {

    /**
     * 名师讲堂列表
     *
     * @param queryInfo 查询条件
     * @return PageInfo<TeacherLectureVO>
     */
    PageInfo<TeacherLectureVO> listTeacherLecture(TeacherLectureQueryInfo queryInfo);

    /**
     * 保存名师讲堂
     *
     * @param teacherLectureDTO 提交表单
     * @return id
     */
    Integer saveTeacherLecture(TeacherLectureDTO teacherLectureDTO);

    /**
     * 修改名师讲堂
     *
     * @param teacherLectureDTO 提交表单
     * @return id
     */
    Integer updateTeacherLecture(TeacherLectureDTO teacherLectureDTO);

    /**
     * 名师讲堂详情
     *
     * @param lectureId lectureId
     * @return TeacherLectureVO
     */
    TeacherLectureVO getTeacherLecture(Integer lectureId);

    /**
     * 删除名师讲堂
     *
     * @param lectureId lectureId
     * @return id
     */
    Integer deleteTeacherLecture(Integer lectureId);

    /**
     * 修改名师讲堂状态
     *
     * @param lectureId lectureId
     * @param status    状态 0-不显示 1-显示
     * @return teacherId
     */
    Integer updateTeacherLectureStatus(Integer lectureId, Integer status);
}
